﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MotorLibrary.Model
{
    [Table("TIPO")]
    public class Tipo: IEntity
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long ID { get; set; }
        [Required, MaxLength(20)]
        public string Nombre { get; set; }

        public virtual ICollection<Endpoint> Endpoints { get; set; }
    }
}
